﻿using System.Web.Http;
using ZQNB.BaseLib.Core.Models;
using ZQNB.Web.Common.Contexts;

namespace ZQNB.Web.Common.Controllers.Api
{
    [RoutePrefix("Api/AceSetting")]
    public class AceSettingController : ApiController
    {
        private readonly INbSiteContextProvider _siteContextProvider;

        public AceSettingController(INbSiteContextProvider siteContextProvider)
        {
            _siteContextProvider = siteContextProvider;
        }

        [HttpGet]
        [Route("Get")]
        public AceSetting Get()
        {
            var result = _siteContextProvider.GetAceSetting();
            return result;
        }
    }
}